<?php

namespace common\widgets\grid;

/**
 * DataColumn is the default column type for the [[GridView]] widget.
 *
 * @author emhome <emhome@163.com>
 * @since 2.0
 */
class ExcelDataColumn extends \yii\grid\DataColumn {

    /**
     * @var boolean 是否使用绝对时间戳
     */
    public $absoluteTimestamp = false;

    /**
     * {@inheritdoc}
     */
    protected function renderDataCellContent($model, $key, $index) {
        $content = parent::renderDataCellContent($model, $key, $index);
        return htmlspecialchars($content);
    }

}
